﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PersonaLibrary.Commands
{
    internal sealed class ShowViewModelCommand<TVm> : CommandBase
        where TVm : ViewModel.IViewModel
    {
        public override bool CanExecute(object parameter)
        {
            return true;
        }

        public override void Execute(object parameter)
        {
            Activator.CreateInstance<TVm>().View.Show();
        }
    }
}
